None
Use this command to inspect the contents of the routing table. The output includes a list of destinations along with the next-hop gateway and associated interface for each entry. Network routes are displayed separately from host-specific routes. Netmask details are not provided.
NOTE: The IP forwarding process only uses the first route entry to a destination. When multiple routes exist to the same destination with the same netmask (which is not shown), the first route entry uses the lowest administrative weight. The remaining entries (listed as additional routes) use the same destination address. One of those entries will replace the primary route if it is deleted.
The routing table Flags field represents a decimal value of the flags specified for a given route. The following is a list of currently available flag values:
0x1 - route is usable (that is, "up")
0x2 - destination is a gateway
0x4 - host specific routing entry
0x8 - host or net unreachable
0x10 - created dynamically (by redirect)
0x20 - modified dynamically (by redirect)
0x40 - message confirmed
0x80 - subnet mask present
0x100 - generate new routes on use
0x200 - external daemon resolves name
0x400 - generated by ARP
0x800 - manually added (static)
0x1000 - just discard packets (during updates)
0x2000 - modified by management protocol
0x4000 - protocol specific routing flag
0x8000 - protocol specific routing flag
|
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.10.158.1 0.0.0.0 UG 0 0 0 ens160 10.0.0.0 10.10.158.1 255.255.255.128 UG 0 0 0 ens160 10.10.158.0 0.0.0.0 255.255.255.128 U 0 0 0 ens160 10.10.158.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens160 |